﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="AssignMenuForRole.aspx.vb" Inherits="I_PORT.AssignMenuForRole" 
    title="IRPC INTELLIGENT PORT SERVICE" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" language="javascript">
        function closeModal() {
           document.getElementById('ctl00_contentplaceholder1_framePopup').src = '../MasterPopup/AssignMenu.aspx';
            var mpu = $find('ctl00_ContentPlaceHolder1_ModalPopupExtender1');
            mpu.hide();
        }
        function showPopup() {
             document.getElementById('ctl00_contentplaceholder1_framePopup').contentWindow.location.reload(true);
        }
</script>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
   <table width="100%" border="0" cellpadding="2" cellspacing="0" >
      <tr>
         <td colspan="2" align="center">
          <asp:GridView ID="gridAssign" runat="server" SkinID="gridblueNoPage" DataKeyNames="Role_no"
                     AutoGenerateColumns="False">
                     <Columns>
                         <asp:BoundField HeaderText="Name" DataField="Role_Name" />
                         <asp:TemplateField HeaderText="แก้ไข" ItemStyle-Width="50px">
                             <ItemTemplate>
                                 <asp:ImageButton ID="imgedit" CommandName="cmdedit" CommandArgument="<%# Container.DataItemIndex %>"  runat="server" ImageUrl="~/Image/edit-24.gif" />
                             </ItemTemplate>
                         </asp:TemplateField>
                     </Columns>
             </asp:GridView>
         </td>
      </tr>
      <tr>
         <td colspan="2" style="height:5%;" align="right">&nbsp;</td>
      </tr>
   </table>
   <asp:Button ID="btnTemp" runat="server" style="display:none;" />
     <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="Background"
     TargetControlID="btnTemp" PopupControlID="PopupAdd" >
    </asp:ModalPopupExtender>
       <asp:Panel ID="PopupAdd" runat="server" Style="display: none;">
        <table>
            <tr>
                <td>
                    <iframe runat="server" id="framePopup" class="Style-Iframe" marginheight="0px" marginwidth="0px" src="../MasterPopup/AssignMenuPopup.aspx">
                    </iframe>
                </td>
            </tr>
        </table>
    </asp:Panel>
       </ContentTemplate>
    </asp:UpdatePanel>
<%--   <script type="text/javascript"> 
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("colortab", 2)
</script>--%>
</asp:Content>
